package com.artifact.mit.mypoint.fragment.app;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

import com.artifact.mit.mypoint.R;
import com.artifact.mit.mypoint.activity.CatalogueRedeem;

public class ProductDetailFragment extends Fragment {

	private Button btnRedeem;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.catalogue_content_form, null);
		btnRedeem = (Button) view.findViewById(R.id.btnRedeem);
		return view;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		btnRedeem.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getActivity(), CatalogueRedeem.class));
			}
		});
	}

}
